<!DOCTYPE html>
<html>
<head>
    <title>妮蔻，你的开发小助手</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <style>
        /* 全局基础样式 */
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            margin: 0;
            padding: 15px;
            background: #f5f5f5;
            line-height: 1.5;
        }

        /* 标题容器 */
        .header-container {
            margin-bottom: 15px;
            text-align: center;
        }
        /* 环境提示 */
        .environment-message {
            margin: 8px 0;
            padding: 6px 10px;
            background: #f8f9fa;
            border-radius: 4px;
            font-size: 13px;
            color: #495057;
        }

        /* 筛选容器 */
        .filter-container {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        /* 筛选输入框 */
        .filter-container input, .filter-container select {
            padding: 6px 8px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 13px;
            flex: 1 1 200px;
        }

        /* 筛选按钮 */
        .filter-btn {
            padding: 6px 12px;
            background: #0d6efd;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
        }

        /* 表格容器 */
        .table-container {
            max-width: 1200px;
            margin: 0 auto;
            overflow-x: auto;
            min-width: 300px; /* 容器最小宽度 */
        }

        /* 表格样式 */
        table {
            width: 100%;
            border-collapse: collapse;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 0 15px rgba(0,0,0,0.1);
            background: white;
        }

        /* 表头样式 */
        th {
            background: #f8f9fa;
            padding: 8px 12px;
            text-align: left;
            font-weight: 600;
            color: #495057;
            border-bottom: 1px solid #dee2e6;
        }

        /* 表格内容 */
        td {
            padding: 8px 12px;
            border-bottom: 1px solid #dee2e6;
            vertical-align: middle;
        }

        /* 列宽设置（通过 nth-child 定位） */
        th:nth-child(1), td:nth-child(1) {
            width: 20%; }       /* 手机号 */
        th:nth-child(2), td:nth-child(2) { width: 12%; }       /* 验证码 */
        th:nth-child(3), td:nth-child(3) { width: 25%; }       /* 验证码类型 */
        th:nth-child(4), td:nth-child(4) {
            width: 15%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; /* 状态列防换行 */
        }
        th:nth-child(5), td:nth-child(5) { width: 10%; }       /* 用户ID */

        /* 隔行变色 */
        tr:nth-child(even) {
            background: #f8f9fa;
        }

        /* 状态样式 */
        .status {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }
        .status-success { background: #c3e6cb; color: #2d6a4f; }
        .status-error { background: #ef9a9a; color: #c62828; }
        .status-pending { background: #fff3e0; color: #a1887f; }

        /* 响应式调整 */
        @media (max-width: 768px) {
            /* 表格列自适应 */
            th, td {
                display: block;
                width: 100%;
            }

            th {
                padding: 6px 0;
                text-align: left;
            }

            td {
                padding: 6px 12px;
                border-bottom: 1px solid #dee2e6;
            }

            /* 取消列宽设置，让内容自适应 */
            th, td {
                width: auto !important;
            }

            /* 响应式表头伪元素 */
            td::before {
                content: attr(data-label);
                font-weight: 600;
                color: #495057;
                display: inline-block;
                width: 30%; /* 缩小标签宽度 */
            }
        }

        /* 加载动画 */
        .loader {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #0d6efd;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            animation: spin 1.5s linear infinite;
            margin: 10px auto;
            display: none;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* 错误提示 */
        .error-message {
            color: #dc3545;
            margin: 8px 0;
            text-align: center;
            display: none;
            font-size: 13px;
        }

        /* 当前环境高亮 */
        .current-env {
            color: #dc3545;
            font-weight: bold;
        }
    </style>
</head>
<body>
<div class="error-message">加载失败，请重试</div>
<!-- 新增标题和筛选部分 -->
<div class="header-container">
    <h1>验证码管理</h1>
    <div class="environment-message">
        检测环境中
    </div>
    <div class="filter-container">
        <input type="text" placeholder="输入手机号" class="phone-filter">
        <select class="env-filter">
            <option value="feature">feature</option>
            <option value="daily">uat/daily</option>
        </select>
        <button class="filter-btn" id="filter-btn">筛选</button>
    </div>
</div>
<div class="table-container">
    <table>
        <thead>
        <tr>
            <th>手机号</th>
            <th>验证码</th>
            <th>验证码类型</th>
            <th>状态</th>
            <th>用户ID</th>
        </tr>
        </thead>
        <tbody>

        </tbody>
    </table>
</div>
<div class="loader"></div>
<script type="text/javascript" src="js/mypanel.js"></script>
</body>
</html>